<%@ page import="com.edusite.Logbook" %>
<html>
    <head>
        <title>Centro Educativo</title>
		<meta name="layout" content="mainAdmin" />
		<style type="text/css" media="screen">
#nav {
				margin-top:20px;
				margin-left:30px;
				width:228px;
				height:400px;
				float:left;

			}
			.homePagePanel * {
				margin:0px;
			}
			.homePagePanel .panelBody ul {
				list-style-type:none;
				margin-bottom:10px;
			}
			.homePagePanel .panelBody h1 {
				text-transform:uppercase;
				font-size:1.1em;
				margin-bottom:10px;
			}
			.homePagePanel .panelBody {
			    background: url(../images/ventana_fondo_rojo.png) repeat-y;
				margin:0px;
				padding:15px;
			}
			.homePagePanel .panelBtm {
			    background: url(../images/ventana_bottom_rojo.png) no-repeat top;
				height:30px;
				width:185px;
				margin:0px
				padding:0px;
			}

			.homePagePanel .panelTop {
			    background: url(../images/ventana_top_rojo.png) no-repeat top;
				height:16px;
				width:185px;
				margin:0px;
				padding:7px 0px;
			}
			
			.homePagePanel .panelTop h1 {
			 font-family:Arial,sans-serif;
			 color: white;
			 font-size:1.2em;
			 float:center;
			 text-align: center;
			 font-weight:bold;
			
 }
			h2 {
				margin-top:15px;
				margin-bottom:15px;
				font-size:1.2em;
			}
			
			#pageBody {
			
				margin-left:30px;
				margin-right:20px;
				margin-top:40px;
				
			}
			#pageBody #panelBoton {
 				background: url(../images/boton_rojo.png) no-repeat top;
 				height:25px;
				width:185px;
 				margin-left:200px;
				float:center;
 				font-family:Arial,sans-serif;
 				font-size:1.2em;
 				text-align: center;
 				font-weight:bold;
 				padding: 3px 0px;
 				color:#006;			}

					</style>
    </head>
    <body>
 	<g:if test="${session.user.tipo=='admin'}">
	    <g:render template="/home/pantAdmin" />
	</g:if>
	
	<g:else>
	  <br><br>
	  <h2> Para entrar en este area debe iniciar sesión como administrador
	  </h2><br>
	  Utilice la ventana superior derecha o <b>Iniciar Sesion</b> enla barra de estado <br>
	  <a href="/alumnos/indice" >Pulse aqui para continuar</a>
	    
	</g:else>
	
        
    
     </body>
</html>
